package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document(indexName = Constants.PHONE_NUMBER_DATA, type = Constants.PHONE_NUMBER_DATA, shards = 1, replicas = 0)
@ApiModel(value = "PhoneNumberData", description = "电话查询")
public class PhoneNumberData implements Serializable {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty("号码前缀")
    private String preNumber;

    @ApiModelProperty("号码段")
    private String phonePeriod;

    @ApiModelProperty("省份")
    private String phoneProvince;

    @ApiModelProperty("城市")
    private String phoneCity;

    @ApiModelProperty("运营商")
    private String carrierOperator;

    @ApiModelProperty("邮编")
    private String postNumber;

    @ApiModelProperty("区号")
    private String areaCode;

    @ApiModelProperty("行政区号")
    private String administrativeAreaCode;

    @ApiModelProperty(notes = "操作时间")
    private Date operatorTime;

    @ApiModelProperty("备用字段1")
    private String remark1;

    @ApiModelProperty("备用字段2")
    private String remark2;

    @ApiModelProperty("备用字段3")
    private String remark3;

}
